package com.tianji.learning.controller;


import com.tianji.learning.domain.dto.QuestionFormDTO;
import com.tianji.learning.domain.dto.ReplyDTO;
import com.tianji.learning.service.IInteractionQuestionService;
import com.tianji.learning.service.IInteractionReplyService;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * <p>
 * 互动问题的回答或评论 前端控制器
 * </p>
 *
 * @author dayu
 * @since 2024-08-25
 */
@RestController
@RequestMapping("replies")
@RequiredArgsConstructor
public class InteractionReplyController {

  private final IInteractionReplyService replyService;
  @ApiOperation("新增回复")
  @PostMapping
  public void saveReply(@RequestBody ReplyDTO reply){
    replyService.saveReply(reply);
  }
}
